package com.woldier.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woldier.dto.DishDto;
import com.woldier.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    void saveWithFlavor(DishDto dishDto);

    Page<DishDto> getByPage(int page , int pageSize, String name);

    /**
     * 更新菜品信息和口味
     * @param dishDto
     */
    void updateWithFlavor(DishDto dishDto);
}
